package com.epam.rentcar.DAO;

public abstract class DAOFactory {

	public static final int MySQL = 1; 

	public abstract CarDAO getCarDAO(int wichFactory);
	public abstract UserDAO getUserDAO(int wichFactory);
	public abstract CarRequestDAO getCarRequestDAO(int wichFactory);
	
	public static DAOFactory getDAOFactory(int whichFactory) {
		switch (whichFactory) { 
			case MySQL: return new DAOFactoryImpl();
			default : return null;
		} 
	}
}
